package com.wjd.wshow.entity;

import com.wjd.wshow.common.resource.ResourceType;

import javax.persistence.*;

@Entity
@Table(name = "s_catalog")
public class Catalog extends BaseEntity {

    @Column(name = "name")
    private String name;

    @Column(name = "resource_id", nullable = false)
    private String resId;

    @Column(name = "resource_type")
    @Enumerated(EnumType.STRING)
    private ResourceType resType;

    @Column(name = "pid")
    private String pid;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getResId() {
        return resId;
    }

    public void setResId(String resId) {
        this.resId = resId;
    }

    public ResourceType getResType() {
        return resType;
    }

    public void setResType(ResourceType resType) {
        this.resType = resType;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }
}
